<?php
/**
 * 名称：主题头部模板
 * 作者：顾小北
 * 博客：
 *最后修改：2011/01/03
 */
?><!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title('》', true, 'right'); echo get_option('blogname'); if (is_home ()) echo "》", get_option('blogdescription'); if ($paged > 1) echo '》Page ', $paged; ?></title>
<?php wp_head(); dtheme_style(); ?>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

</head>

<body>
<header id="header">

    <hgroup>
        <h1 id="site-title"><a href="<?php bloginfo('url')?>" title="<?php bloginfo( 'name' ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
        <h2 id="site-description">
             <?php bloginfo( 'description' ); ?><br />
             <a href="http://www.w3schools.com/">http://www.w3schools.com</a>						
        </h2>
       
    </hgroup>
    
    <nav id="nav">
		<?php echo wp_nav_menu( array('container' => 'ul','menu_id' => 'top_nav','menu_class' => 'primary-nav','theme_location' => 'nav' ) ) ?>
	    
	    <?php echo wp_nav_menu( array('container' => 'ul','menu_id' => 'top_menu', 'menu_class' => 'sub-nav', 'theme_location' => 'menu' ) ) ?>
    </nav> 
    
</header>